package com.widget_demos.pulltorefresh;

import com.widget_demos.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class RefreshListViewActivity extends Activity {

	private RefreshListView refreshListView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pulltorefresh_main);
		
		refreshListView = (RefreshListView) findViewById(R.id.refreshListView);
		String[] data = {"one", "two", "three", "four", "five", "six", 
				"seven", "eight", "nine", "ten", "eleven", "twelve", 
				"thirteen", "fourteen"};
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, data);
		refreshListView.setAdapter(adapter);
	}
}
